package com.bonuo.crm.service.impl;

import com.bonuo.crm.domain.Faculty;
import com.bonuo.crm.mapper.ActivityMapper;
import com.bonuo.crm.mapper.FacultyMapper;
import com.bonuo.crm.service.FacultyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FacultyServiceImpl implements FacultyService {
    @Autowired
    private FacultyMapper facultyMapper;

    @Override
    public List<Faculty> selectFacultyList(Faculty faculty) {

        return facultyMapper.selectFacultyList(faculty);
    }

    @Override
    public Integer insertFaculty(Faculty faculty) {
        return facultyMapper.insertFaculty(faculty);
    }

    @Override
    public Integer deleteFacultyById(Integer id) {
        return facultyMapper.deleteFacultyById(id);
    }

    @Override
    public Integer updateFaculty(Faculty faculty) {
        return facultyMapper.updateFaculty(faculty);
    }

    @Override
    public Integer selectFacultyByClientId(Integer id) {
        return facultyMapper.selectFacultyByClientId(id);
    }
}
